#include "stdafx.h"
#include "Mesh.h"

CMesh::CMesh()
:m_pVertexBuffer(NULL)
, m_pIndexBuffer(NULL)
{

}

CMesh::~CMesh()
{
	if (m_pVertexBuffer)
	{
		delete m_pVertexBuffer;
		m_pVertexBuffer = NULL;
		m_nVertexCount = 0;
	}

	if (m_pIndexBuffer)
	{
		delete m_pIndexBuffer;
		m_pIndexBuffer = NULL;
		m_nIndexCount = 0;
	}
}